#!/bin/bash

if [[ $1 = start ]]
then
	USB3_IRQ=`cat /proc/interrupts | grep "xhci-hcd:usb3" | awk -F : '{print $1}'`
	USB5_IRQ=`cat /proc/interrupts | grep "xhci-hcd:usb5" | awk -F : '{print $1}'`
	echo 5 > /proc/irq/${USB3_IRQ}/smp_affinity_list
	echo 6 > /proc/irq/${USB5_IRQ}/smp_affinity_list

	if [ -f /sys/class/net/eth0/queues/rx-0/rps_cpus ]; then
		echo f > /sys/class/net/eth0/queues/rx-0/rps_cpus
	fi
fi

